package Behaviors.Arbitrators;
import Behaviors.NxBehavior;
import Robot.*;

/**
 *
 * @author alejo
 */
public abstract class Arbitrator extends NxBehavior{
    public boolean enabled = true;
    private NxBehavior[] Schemas;
    Device actuator;
    
    public Arbitrator(String name, NxBehavior [] schemas, Device actuator) {
        super(name);
        Schemas=schemas;
        this.actuator=actuator;
    }

    public Arbitrator(String name, NxBehavior schema, Device actuator) {
        
        super(name);
        Schemas=new NxBehavior[1];
        Schemas[0]=schema;
        this.actuator=actuator;
    }

    public abstract void step();
    
    
    public NxBehavior[] getSchemas() {
        return Schemas;
    }

    public void setSchema(NxBehavior[] val) {
        this.Schemas = val;
    }
}
